import axios from "@/utils/request.js"
// 搜索餐馆
export const searchCafe = params => axios({
    url: "https://elm.cangdu.org/v4/restaurants",
    method: "get",
    params
})

// 餐馆详情 
export const restaurant = (shopid) => axios({
    url: 'https://elm.cangdu.org/shopping/restaurant/' + shopid,
    method: 'get'
})

// 获取食品列表 
export const foodlist = (params) => axios({
    url: "https://elm.cangdu.org/shopping/v2/menu",
    method: "get",
    params
})
// 获取评价分数
export const evaluate = (id) => axios({
    url: ' https://elm.cangdu.org/ugc/v2/restaurants/' + id + '/ratings/scores',
    method: "get",

})